<?php
/**
 * Created by PhpStorm.
 * User: xiaofeng
 * motto: 现在的努力是为了小时候吹过的牛逼！
 * Date: 2020/1/7
 * Time: 11:14
 */
namespace app\demo\middleware;

class Check {

    public function handle($request, \Closure $next){

        $request->type = "demo-xiaofeng";
        return $next($request);
    }

    /**
     * 中间件结束调度
     * @param \think\Response $response
     */
    public function end(\think\Response $response){

    }
}